home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
emula
/
arosdv19.lha
/
AROS
/
config
/
i386-emul
/
disable.s
< prev
next >
Wrap
Text File
|
1996-10-24
|
1KB
|
74 lines
# (C) 1995-96 AROS - The Amiga Replacement OS
# $Id: disable.s,v 1.12 1996/10/24 15:51:10 aros Exp $
#
# Desc: Exec function Disable
# Lang: english
#*****************************************************************************
#
# NAME
# AROS_LH0(void, Disable,
#
# LOCATION
# struct ExecBase *, SysBase, 20, Exec)
#
# FUNCTION
#
# INPUTS
#
# RESULT
#
# NOTES
#
# EXAMPLE
#
# BUGS
#
# SEE ALSO
#
# INTERNALS
#
# HISTORY
#
#******************************************************************************
#if defined(__FreeBSD__)
#define sigprocmask _sigprocmask
#endif
.include "machine.i"
.text
.balign 16
.globl _Exec_Disable
.type _Exec_Disable,@function
_Exec_Disable:
call disable
pushl %eax
movl 8(%esp),%eax
incb IDNestCnt(%eax)
popl %eax
ret
.globl disable
.type disable,@function
disable:
pushl %eax
pushl %ecx
pushl %edx
pushl $-1
pushl $0
leal 4(%esp),%eax
pushl %eax
pushl $0
call sigprocmask
addl $16,%esp
popl %edx
popl %ecx
popl %eax
ret